package com.maxd.utils;

import java.io.File;

public class FileUtils {

    public static File createFile(String filePath) throws Exception {
        File file = new File(filePath);
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        if (!file.exists()) {
            file.createNewFile();
        }
        return file;
    }

}
